package script.grammar.symbol;

public class ClassSymbol extends ScopedSymbol implements Type {

	public ClassSymbol(String name, Scope enclosing) {
		super(name, null, enclosing);
	}
	
	@Override
	public String getAlias() {
		return getName();
	}
	
	@Override
	public Type getType() {
		return this;
	}

	@Override
	public int getIndex() {
		return NativeType.OBJECT.getIndex();
	}

	@Override
	public Symbol getTypeSymbol() {
		return this;
	}
}